scripts/core/augmented.js
function(key) {
            if (key) {
              var data = this.toJSON();
              if (data) {
                var sorted = Augmented.Utility.Sort(data, key);
                this.reset(sorted);
              }
            }
          }
function(key) {
            if (key) {
              var data = this.toJSON();
              if (data) {
                var sorted = Augmented.Utility.Sort(data, key);
                this.reset(sorted);
              }
            }
          }
function ( key ) { if ( key ) { var data = this . toJSON ( ) ; if ( data ) { var sorted = Augmented . Utility . Sort ( data , key ) ; this . reset ( sorted ) ; } } }
sortByKey - Sorts the collection by a property key
@method sortByKey
@param {object} key The key to sort by
@memberof Augmented.Collection
sortByKey - Sorts the collection by a property key