Code for figuring out whether or not a field is sortable, and whether or not to use ALPHA modifier is more robust.