docs: function (sort) {
              var ret = {};
              sort = sort || [];
              for (var i = 0; i < sort.length; i++) {
                  var sortElement = sort[i];
                  ret[sortElement.field] = sortElement.direction;
              }
              return ret;
          }