Could we get sorting to "remember" or "nest" past sorts?

Discussion in 'Feedback and Suggestions' started by Sir Knight, Jan 15, 2013.

  1. Sir Knight

    Sir Knight Sir-ulean Dragon

    I'm trying to sort my items by talent cost and rarity. In an ordinary spreadsheet, past sorts are "remembered" in a sense, allowing the user to nest. For instance, suppose I sorted by rarity in a vertical list. I'd get:

    Legendary items, various talents
    Epic items, various talents
    Rare items, various talents
    Uncommon items, various talents
    Common items, various talents

    Then, if I sorted by talent cost, I'd get:

    Bronze talent items, legendary
    Bronze talent items . . .
    Bronze talent items, common
    Clear talent items, legendary
    Clear talent items . . .
    Clear talent items, common
    No talent items, legendary
    No talent items . . .
    No talent items, common

    It works this way because the spreadsheet is sorting something that was already sorted once. In a sense, it requires no coding to get it to happen. But this is not what Card Hunter does: instead it gives the same seemingly-random ordering (probably some internal item number system) at the nested level, and all sorting looks like the top example there.

    If I could do this here, then I could more easily tell which items were valuable to sell (more rare) AND valuable to me personally by whatever other measure (here, talent cost).

    I know database fiddling has been discussed before. Any hope for a change like this?
     
  2. Farbs

    Farbs Blue Manchu Staff Member

    Hmm.

    At present all the sort options fall back to alphabetical for their subsorting, which groups identical items together nicely. I tried just resorting based on the new criterion but within each band the items were getting jumbled. So, in order to do this we'd need to write a new sorting algorithm that retains existing ordering, and that clumps identical items together. It's certainly not impossible, but it's not the low hanging fruit I was hoping for either.

    In the meantime I could easily adjust the sub-sort, if people think that would help. For example, I could always sort all items within a group (eg the same talents if sorting by talent, or the same price if sorting by price) by level before then falling back to name. Let me know what you think.

    EDIT:
    Oh! Actually I could just implement it as a simple history list, falling through to an older sort method where the newer one returns equality. That's much easier, and would handle items being added much better. This is a smallish task, so I'll add it to our todo list and pick it up when I need something small to fiddle with.
     
  3. Sir Knight

    Sir Knight Sir-ulean Dragon

    Two things.

    One: YES. I hadn't properly considered the jumbling issue, so I'm so glad it seems easy (-ish) to edit in the end.

    Two:
    Why did I not so much as notice the alphabetical subsorting? Argh, I feel foolish. However . . .

    When you first go to an item page, the default organization on the page is "cost," and then there's the current alphabetical subsort. That makes sense for store inventory, but in your personal inventory it's not as useful intuitively: when equipping, you interact with your items by name or by function. If the base sort is "alphabetical," then wouldn't it be more useful to just plain default your personal inventory to alphabetical?

    From there, one could build up various sorts as discussed.
     

Share This Page