Multi-level sorting on levelranks/song search in-game

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • #1
    Sic itur ad astra
    FFR Simfile Author
    Netjet!
    • Jan 2008
    • 4701

    Multi-level sorting on levelranks/song search in-game

    I was wondering if it was possible to do (or make doable) multi-level sorting on the levelrank.php page and on the song-sorter ingame. Like if you wanted to sort first by difficulty, and then by score to list all of the songs you haven't played yet (score=0) by difficulty. If someone were clearing their levelranks or finding new songs to play, it could make it easier for them to filter through the songs (if they had a lot of songs unplayed).

    Of course, there are other uses for it but that's that one that comes to my head first. Thanks!
    RIP Steve Van Ness <3
  • #2
    stepmania archaeologist
    FFR Simfile Author
    qqwref
    • Aug 2005
    • 4092

    Re: Multi-level sorting on levelranks/song search in-game

    The easiest way would probably be to use a stable sorting algorithm (that is, one that keeps the order of things that are tied). So then if you sorted first by name and then by difficulty, within each difficulty the songs would be sorted by name. For levelranks, you'd probably need something like the javascript table sorter I was working on a while ago, so that you could do multiple separate sorts without having to refresh the page. If the language being used doesn't have their own version of a stable sort it wouldn't be too hard to write one manually.
    Best AAA: Policy In The Sky [Oni] (81)
    Best SDG: PANTS (86)
    Best FC: Future Invasion (93)

    Comment

    • #3
      FFR Wiki Admin
      noname219
      • May 2007
      • 1694

      Re: Multi-level sorting on levelranks/song search in-game

      You can do that in the levelranks page...

      1. Click on difficulty (D)
      2. Click on combo (C)

      Also, ReikonKeiri worked on something similar : (http://www.flashflashrevolution.com/...d.php?t=126283)

      Comment

      • #4
        Sic itur ad astra
        FFR Simfile Author
        Netjet!
        • Jan 2008
        • 4701

        Re: Multi-level sorting on levelranks/song search in-game

        Originally posted by noname219
        You can do that in the levelranks page...

        1. Click on difficulty (D)
        2. Click on combo (C)
        That doesn't work for me though, it only sorts by one of the categories (ie. only difficulty or only combo, not able to do both)
        RIP Steve Van Ness <3

        Comment

        • #5
          FFR Wiki Admin
          noname219
          • May 2007
          • 1694

          Re: Multi-level sorting on levelranks/song search in-game

          Try with Firefox or Safari.
          IE and Chrome doesn't work for me.

          Comment

          • #6
            Sic itur ad astra
            FFR Simfile Author
            Netjet!
            • Jan 2008
            • 4701

            Re: Multi-level sorting on levelranks/song search in-game

            Oh wow, worked on FF. Thanks man!

            And damn you Chrome :<
            RIP Steve Van Ness <3

            Comment

            Working...