Meet us at SGIA Expo. Las Vegas, NV. Oct. 18—19.

SortType Interface

A structure defining options to sort assets.

example

clientConfig.json

{
  "assetSources": {
    "[source]Google Drive": {
      "type": "RemoteSource",
      "url": "https://example.com",
      "subfolder": "/animals/cats/",
      "fileSortTypes": [
        {
          "asc": "createdTime",
          "desc": "createdTime desc",
          "title": {
            "en": "Creation time",
            "de": "Erstellungszeit"
          }
        },
        {
          "asc": "starred",
          "desc": "starred desc",
          "title": {
            "en": "Starred",
            "de": "Markiert"
          }
        }
      ]
    }
  }
}

Properties

asc

asc: string

The ascending sort order.

Optional desc

desc: string

The descending sort order. For Google Drive, to enable the descending order by the creation time, add the desc modifier "desc": "createdTime desc".

title

title: string | object

An array of localized titles of this sort option. You can specify a number of translations.