From 7ef43572ef38d744d4ca371a80378ca8be2d4f72 Mon Sep 17 00:00:00 2001 From: Adam Wright Date: Fri, 10 May 2019 16:47:49 +0000 Subject: [PATCH] sorting features --- src/rest_api/classes/sequence/core.clj | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/rest_api/classes/sequence/core.clj b/src/rest_api/classes/sequence/core.clj index 460ea85f..cb914dd3 100644 --- a/src/rest_api/classes/sequence/core.clj +++ b/src/rest_api/classes/sequence/core.clj @@ -308,12 +308,12 @@ {:start (- end (- (:stop feature) (:start feature))) :stop (count sequence-positive)}))))))) - modified-positive-features-with-padding (if (> padding 0) - (add-padding-to-feature-list - modified-positive-features - padding - (count sequence-positive)) - modified-positive-features)] + modified-positive-features-with-padding (sort-by :start (if (> padding 0) + (add-padding-to-feature-list + modified-positive-features + padding + (count sequence-positive)) + modified-positive-features))] {:positive_strand {:features modified-positive-features-with-padding :sequence sequence-positive}