sort(by, dir, as)

sorts datastore

Parameters

  • by - template for sorted value
    • template
    • function
    • hash of parameters
  • dir - sorting direction (optional)
  • as - type of data sorting (optional)
    • function
    • string, one from the next list: string,string_strict,integer

Returns

method doesn't return any data