bring in the sorter function from waterline-criteria
allow populated attributes to be sorted