From: JIRA (f. T. P. ) <ji...@pc...> - 2010-12-07 21:37:12
|
[ http://jira.pcgen.org/browse/NEWTAG-5?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tom Parker updated NEWTAG-5: ---------------------------- Assignee: Eric C. Smith > Add SORTKEY to control output sorting (global) > ---------------------------------------------- > > Key: NEWTAG-5 > URL: http://jira.pcgen.org/browse/NEWTAG-5 > Project: New Tag > Issue Type: New Token > Components: LST Tag > Affects Versions: 5.17.1, 5.17.2 > Reporter: Andrew Maitland > Assignee: Eric C. Smith > Fix For: 5.17.4 (Alpha) > > Original Estimate: 6 hours > Remaining Estimate: 6 hours > > Summary of Proposal: > A new Method to Sort items (abilities, equip, etc.) in an order instead of the NAME or OUTPUTNAME using the Alphabetical method > Add a new text value - SORTKEY > SORTKEY:x > x = Text or Numerical Value > Sorts in the order of 0-9, A-Z > When sorting lists of objects, PCGen would use, SORTKEY, OUTPUTNAME or Name in that order to determine what to sort on and then it would order by the values, being a text field you can do whatever fancy grouping you like without pcgen having to interpret it. > Example of Usage > Enlarge Spell <> SORTKEY:Metamagic~Enlarge Spell > Quicken Spell <> SORTKEY:11-MetaMagic~Quicken Spell > Early Feat <> SORTKEY:Z-Me last > Would Display as > Quicken Spell > Enlarge Spell > Early Feat > Order of Operation - SORTKEY, OUTPUTNAME, NAME -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.pcgen.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |