/** * Created by robin on 12/15/16. */ (function () { 'use strict'; angular.module('appSdk') .factory('AppUtilsBusiness', [function () { var AppUtilsBusiness = {}; AppUtilsBusiness.convertOrderBy = function(orderBy) { if (orderBy[0] == '-') { orderBy = orderBy.substr(1) + ":DESC"; } else { orderBy = orderBy + ":ASC"; } return orderBy; }; return AppUtilsBusiness; }]); })();