Fixes issue #1056: catalog sort by timeblock

Moves the code that fixes the "timeblock" field name to before the
field names are used so that it actually works.