Make user sort in reports do the rigth thing for enumerations (comparing the value as int instead of comparing the name).
This hardcodes the name of those enumerations, but as there's no way of introspecting the schema, this is better than nothing.
Contributed by vnaum on #4715, thanks!
Authored by: cboos 2008-04-17
Parent: [r6841]
Child: [r6843]