Skip to content

Use natural sorting for mapvotes instead of strict alphabetic sorting #6

Open

Description

@H-M-H

Replace this line with it then:

for m in Map.objects.filter(server_type=server_type, categories=None).order_by(Lower('name')):

Activity

  1. H-M-H commented on Aug 31, 2017

    @H-M-H
    MemberAuthor
  2. heinrich5991 commented on Sep 1, 2017

    @heinrich5991
    Member

    Better to do it in the database, I guess: https://stackoverflow.com/a/42535635/870079

  3. H-M-H commented on Sep 1, 2017

    @H-M-H
    MemberAuthor

    Yes, I would also prefer sorting in the database but the solution proposed implies adding another field to the maps table with all numbers from the mapnames replaced with zeropadded ones. Do we want this ?

  4. heinrich5991 commented on Sep 4, 2017

    @heinrich5991
    Member

    I don't know, I think you're the expert here. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions