From ac8a6284d4582c985dcc971bef8acf87c0d4f2d7 Mon Sep 17 00:00:00 2001 From: Tobias Johansson Date: Tue, 12 Feb 2019 12:59:01 +0100 Subject: [PATCH] Vue Attract: Default sort shots by cut_in_timeline_in_frames --- src/scripts/js/es6/common/api/shots.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/scripts/js/es6/common/api/shots.js b/src/scripts/js/es6/common/api/shots.js index c3f1d9c..4cb5fa1 100644 --- a/src/scripts/js/es6/common/api/shots.js +++ b/src/scripts/js/es6/common/api/shots.js @@ -2,8 +2,9 @@ function thenGetProjectShots(projectId) { let where = { project: projectId, node_type: 'attract_shot' - } - return pillar.api.thenGetNodes(where); + }; + let sort = '-properties.used_in_edit,properties.cut_in_timeline_in_frames'; + return pillar.api.thenGetNodes(where, {}, sort); } export { thenGetProjectShots }