PlaneShift

  • Status New
  • Percent Complete
    50%
  • Task Type Feature Request
  • Category Engine
  • Assigned To
    Joe Lyon
  • Operating System
  • Severity Medium
  • Priority
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: PlaneShift
Opened by Sliss - 24.08.2013
Last edited by Venalan - 15.10.2014

FS#6138 - sort storage on name, type, value etc.

Sometimes I would which i could sort the storage list in a different way. Would it be possible to add bi-directional sort options in the storage/buy window?

Venalan commented on 03.10.2014 13:01

It is easy enough to add column headers to the windows to allow sorting, it is just an XML option. But. Value is sent to the client as a string not a number so when you sort it does not sort as expected, I already tried doing this. If this can be changed then adding column headers to allow sorting would be worth doing.

Neeno Pelero commented on 04.10.2014 06:45

Here is a patch for sorting after count, price and name: http://pastebin.com/svw8RLQU.
(It's just a pullout of PSExtended, so check first, if it's working)

The funny thing is, that there was everything in the code already, you just had to activate it ;)
I think you know how to update the xml parts, but you should disable sorting by images (sortable="no"), because the code is not written for that.

Venalan commented on 08.10.2014 22:15

Thanks neeno, I tested the patch and it seems to be ok. I think we will work on adding it, thanks for all your code we've been adding small pieces one at a time.

Joe Lyon commented on 14.10.2014 23:04

I just checked this in. Thanks Neeno and Venalan!
We will need to add a flag to indicate if the column is numeric data, since it presently sorts as strings. I'll do that asap if you don't beat me to it. ;)

At present this is just implemented in the merchant window. there's a related ticket that requests sorting by quality in the storage window.

bonifarz commented on 15.10.2014 08:47

I remember, when Neeno added this to PSExtended, he had to do a small modification in order to support numerical sorting, which works perfectly fine with his mod package.

Evaraj commented on 17.10.2014 15:35

Small issue: When accidentally double-clicking on the headings, the item details window pops up.

Venalan commented on 17.10.2014 19:35

I'll move that bug to another post Evaraj.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing