I have these cheat notes
Here is a trick that worked for me.
Let's say you have [Name] which is the text you want in the report, but you want to sort it by another field [Name Sort Ordinal]. Create a Formal - Rich Text field [Display] like this and use it instead of [Name]:
"<span data-ord='" & [Name Sort Ordinal] & "'>" & [Name] & "</span>"
You might need to pad the ordinal with spaces or zeros if you have numbers with more than 9 values etc. because this will be sorted as text, not as numbers.
This works because the attribute in the span tag is not displayed, but it will be part of the text that Quick Base sorts for the report, and the attribute comes before the actual display text. Only the text part between the <span></span> tags will actually be displayed.
So the trick would be to contrive a field that sorts correctly, given that you want descending, so you might need to have a zero padded number which ends up being low for near dates and high for old dates.
like
PadLeft(
Todays(AdjustYear(Today(),10) - [my date field]),6,"0")
------------------------------
Mark Shnier (YQC)
mark.shnier@gmail.com
------------------------------