September 25, 2003
Adding a Dictionary Sort to MT
I wanted to sort the entries in ‘Enlightened Dreams | Fiction’ by a dictionary type sort — ignoring html, punctuation other than a ‘-’ (including those encoded as html entities), treating whitespace as a single space, and with case insensitivity.
I posted the problem to the MT board, and we kicked it around a bit. Oscarf gave me the right lines to start hacking, and while I was working Staggernation gave some good simpler hacks, that aren’t quite what I wanted. (Simpler to write — the only difference in applying them is if you find, copy, paste once or twice)
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
Search
Archives
Older Entries
Links
ERROR: http://rpc.blogrolling.com/display_raw.php?r=d75c76c02a4056181f916425f29d1a79 is currently inaccessible