Helper function to generate the sorting function based off the list of sort attributes.
The sort function creation will look for a property on the store called 'comparatorMap'. If it exists
it will look in the mapping for comparisons function for the attributes. If one is found, it will
use it instead of the basic comparator, which is typically used for strings, ints, booleans, and dates.
Returns the sorting function for this particular list of attributes and sorting directions.
Parameter |
Type |
Usage |
Description |
sortSpec |
attributes |
required |
array A JS object that array that defines out what attribute names to sort on and whether it should be descenting or asending. |
store |
dojo.data.core.Read |
required |
object The datastore object to look up item values from. |