Alter metadata prior to $sortLinks?

This pertains to items/browse.php

Is it possible to alter metadata before it passes through $sortLinks? For example, I have a Dublin Core 'Date' field that I want to convert with strtotime() before sorting.

Any advice?

Not really.

The sorting happens on the database level, so it occurs before Omeka or PHP ever sees the data. You could change the actual values in the field or create a new one that's a transformed version of the plaintext Date, but you'd have to do either of those things ahead of time, not "on the fly."

Thanks, good to know!

I'll alter the data in the MySQL column instead.