diff options
author | Marcin Zelent <marcin@zelent.net> | 2022-12-05 13:00:06 +0100 |
---|---|---|
committer | Marcin Zelent <marcin@zelent.net> | 2022-12-05 13:00:06 +0100 |
commit | 68a7c103b72910ac904cbf72afaffcfe56af1e4f (patch) | |
tree | a1d2d67229d52f6f06c76e0e7442678048b12fc3 /src/models/Trip.ts | |
parent | af173870fa08d1a671dad50eac0a8d0894c5be3d (diff) |
Added sorting of groups
Diffstat (limited to 'src/models/Trip.ts')
-rw-r--r-- | src/models/Trip.ts | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/models/Trip.ts b/src/models/Trip.ts index 7f92669..46c462d 100644 --- a/src/models/Trip.ts +++ b/src/models/Trip.ts @@ -19,10 +19,22 @@ export default interface Trip { /**
* URL to a JSON file containing data for the trip.
*/
- url: string;
+ url?: string;
/**
* Property indicating if the trip data has been already downloaded.
*/
downloaded: boolean;
+
+ /**
+ * A group property to use while sorting groups.
+ * Nested properties should be delimited with a dot.
+ * Default: name.
+ */
+ sortProperty?: string;
+
+ /**
+ * Sort order. true = descending, false = ascending.
+ */
+ sortOrder?: boolean;
}
|