sort results by attribute

to support dgrid sort functionality