StarfinderWiki:Sorting the years
This page is an official policy on StarfinderWiki. In accordance with policy, this page has been protected. You can suggest changes by following the revision procedure or discussing it on the talk page. |
Ideally, the years should be in numerical order, but the categories are sorted in alphabetical order by default. For example, take the years 14 AR, 135 AR and 1270 AR. If these are placed in the same category with no sort key, they will be ordered as follows:
- 1270 AR
- 135 AR
- 14 AR
This is due to the alphabetical sorting. It is possible to get around this to sort positive years, by assigning sort keys with leading zeros, like this:
[[Category:Years|00014]] [[Category:Years|00135]] [[Category:Years|01270]]
This will ensure that all the years are placed in correct numerical order, but has the side effect that they are all categorized under "0".
The problem arises when dealing with negative numbers. Using the same process...
[[Category:Years|-00014]] [[Category:Years|-00135]] [[Category:Years|-01270]]
...the years are placed in the correct numerical order in the "-" category, but this is the reverse of the correct chronological order (-14 AR appears before -1270 AR).
Sorting solution
This system is based around the premise that the history will begin at -20000 AR (a significant number of years before Earthfall and the start of recorded history). Think of it as a kelvin scale for absolute years. For this system all you have to do is add or subtract the year from 20000; subtraction for years before 1 AR and addition for years after. For example: