+#define SORT_SPAM 14
+/* dgc: Sort & SortAux are shorts, so I'm bumping these bitflags up from
+ * bits 4 & 5 to bits 8 & 9 to make room for more sort keys in the future. */
+#define SORT_MASK 0xff
+#define SORT_REVERSE (1<<8)
+#define SORT_LAST (1<<9)