lib/jamf/api/mixins/sortable.rb
def parse_collection_sort(sort)
      case sort
      when nil
        sort
      when String
        "&sort=#{CGI.escape sort}"
      when Array
        "&sort=#{CGI.escape sort.join(',')}"
      else
        raise ArgumentError, 'sort criteria must be a String or Array of Strings'
      end
    end
# generate the sort params for the url
#
generate the sort params for the url
generate the sort params for the url
def parse_collection_sort(sort)
      case sort
      when nil
        sort
      when String
        "&sort=#{CGI.escape sort}"
      when Array
        "&sort=#{CGI.escape sort.join(',')}"
      else
        raise ArgumentError, 'sort criteria must be a String or Array of Strings'
      end
    end
def parse_collection_sort ( sort ) case sort when nil sort when String "&sort=#{CGI.escape sort}" when Array "&sort=#{CGI.escape sort.join(',')}" else raise ArgumentError , 'sort criteria must be a String or Array of Strings' end end
generate the sort params for the url
generate the sort params for the url
sort