sort(type, sort) {
    if (this.ready) {
      this.collections[type][type].sort(sort);
      this.collections[type].render();
    } else {
      handleMessage(msg['NOT_READY_WARNING']);
    }
  }
Sort method for file collections.
@method
@param {string} type - Type of file collection.
@param {function} sort - Sorting function.