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

+4 votes
102 views
...or is it broken?
WikiTree profile: Space:North_American_X-15
in The Tree House by Gil Davis G2G6 Mach 1 (13.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

+2 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 (13.0k points)
+3 votes
by Anonymous Moore G2G6 (9.4k points)
Saw that. WikiTree doesn't follow most of the nicer features available for tables.

Related questions

+3 votes
1 answer
180 views asked Mar 13, 2019 in WikiTree Tech by David Wilson G2G6 Pilot (101k points)
+7 votes
1 answer
+7 votes
3 answers
241 views asked Aug 14, 2017 in WikiTree Tech by Debi Hoag G2G6 Pilot (318k points)
+3 votes
1 answer
+5 votes
1 answer
134 views asked Mar 8, 2019 in WikiTree Tech by Rob Judd G2G6 Mach 9 (94.2k points)
+2 votes
1 answer
80 views asked Jan 16, 2019 in WikiTree Tech by Chris Hampson G2G6 Pilot (105k points)
+8 votes
2 answers
+5 votes
3 answers
320 views asked Dec 7, 2017 in WikiTree Tech by Don Osborn G2G6 (7.8k points)
+6 votes
0 answers
67 views asked Dec 2, 2017 in WikiTree Tech by Roger Shipman G2G6 Mach 1 (17.3k points)
+10 votes
1 answer

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

disclaimer - terms - copyright

...