From 2a7a6da95d70da431ce178c9ebfee2cb00f8dfa1 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 18 Sep 2012 21:26:53 +0200 Subject: [PATCH] sort text bins by create instead of value as 3rd sort value, fixes #995 --- source/Ox.UI/js/Video/AnnotationFolder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Video/AnnotationFolder.js b/source/Ox.UI/js/Video/AnnotationFolder.js index a81c468a..fc6825d2 100644 --- a/source/Ox.UI/js/Video/AnnotationFolder.js +++ b/source/Ox.UI/js/Video/AnnotationFolder.js @@ -455,8 +455,8 @@ Ox.AnnotationFolder = function(options, self) { function getSort() { return ({ - duration: ['-duration', '+in', '+value'], - position: ['+in', '+duration', '+value'], + duration: ['-duration', '+in', self.options.type == 'text' ? '+created' : '+value'], + position: ['+in', '+duration', self.options.type == 'text' ? '+created' : '+value'], text: ['+value', '+in', '+duration'] })[self.options.sort]; }