Create generalized sort function to handle needing ascending and descending sort under different contexts.
Create generalized sort function to handle needing ascending and descending sort under different contexts.

Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine