Anyone know how to get the sortable wikitable to sort dates?

+6 votes
284 views
...or is it broken?
WikiTree profile: Space:North_American_X-15
in The Tree House by Gil Davis G2G6 Mach 1 (15.0k points)
I don’t have an answer for you, Gilbert, but that is an excellent page!
Thanks!
Sorry to say this, Gilbert.

Seems WikiTree wikitables have limited capabilities. They sort only "alpha" and "numeric" fields. They don't identify dates as "date" fields.
It should sort dates in international format. eg 2018-07-29, just by treating them as text.

The trick is to make it hide the sort key and display something else.  But I can't remember how.
@RJ Horace

Thanks! That occurred to me too, late last night. Not happy with the format, but sorting is an important feature.

2 Answers

+4 votes
 
Best answer
I fished the javascript code out of the page and discovered that the table sorting code was the same one I used for work.

The problem with my dates is that the cell had a leading and trailing space due to the way I thought you had to code tables. I was using " || " to separate the cells. Once I removed the extra spaces, it sorts as expected.
by Gil Davis G2G6 Mach 1 (15.0k points)
+5 votes
by Living Moore G2G6 Mach 1 (10.8k points)
Saw that. WikiTree doesn't follow most of the nicer features available for tables.

Related questions

+3 votes
1 answer
263 views asked Mar 13, 2019 in WikiTree Tech by David Wilson G2G6 Pilot (126k points)
+8 votes
1 answer
+8 votes
3 answers
498 views asked Aug 14, 2017 in WikiTree Tech by Debi Hoag G2G6 Pilot (412k points)
+5 votes
1 answer
+8 votes
1 answer
+8 votes
1 answer
187 views asked Mar 8, 2019 in WikiTree Tech by Robert Judd G2G6 Pilot (138k points)
+4 votes
1 answer
146 views asked Jan 16, 2019 in WikiTree Tech by Living Hampson G2G6 Pilot (115k points)
+10 votes
2 answers
+7 votes
3 answers
499 views asked Dec 7, 2017 in WikiTree Tech by Don Osborn G2G6 Mach 1 (11.7k points)
+7 votes
0 answers
106 views asked Dec 2, 2017 in WikiTree Tech by Roger Shipman G2G6 Mach 2 (21.2k points)

WikiTree  ~  About  ~  Help Help  ~  Search Person Search  ~  Surname:

disclaimer - terms - copyright

...