Plugin that adds default and custom sorting functionality to the Recordset utility
_defSortFnMethod that all sort calls go through. Sets up the lastSortProperties object with the details of the sort, and passes in parameters to the "defaultSorter" or a custom specified sort function.
flipSorts the recordset based on the last-used sort parameters, but flips the order. (ie: Descending becomes ascending, and vice versa).
initializerSets up the default function to use when the "sort" event is fired.
resortResorts the recordset based on the last-used sort parameters (stored in 'lastSortProperties' ATTR)
reverseReverses the recordset calling the standard array.reverse() method.
defaultSorterDefault sort function to use if none is specified by the user. Takes two records, the key to sort by, and whether sorting direction is descending or not (boolean). If two records have the same value for a given key, the ID is used as the tie-breaker.
defaultSorterChange
            Fires when the value for the configuration attribute defaultSorter is
            changed. You can listen for the event using the on method if you
            wish to be notified before the attribute's value has changed, or
            using the after method if you wish to be notified after the
            attribute's value has changed.
            
e
                        EventFacade
                        defaultSorterA boolean telling if the recordset is in a sorted state.
defaultSorterChange
            Fires when the value for the configuration attribute defaultSorter is
            changed. You can listen for the event using the on method if you
            wish to be notified before the attribute's value has changed, or
            using the after method if you wish to be notified after the
            attribute's value has changed.
            
e
                        EventFacade
                        lastSortPropertiesThe last properties used to sort. Consists of an object literal with the keys "field", "desc", and "sorter"
lastSortPropertiesChange
            Fires when the value for the configuration attribute lastSortProperties is
            changed. You can listen for the event using the on method if you
            wish to be notified before the attribute's value has changed, or
            using the after method if you wish to be notified after the
            attribute's value has changed.
            
e
                        EventFacade