From 41992ee72f015ff8ebc0926516d330a5bfed1583 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 5 Nov 2014 10:48:14 +0100 Subject: [PATCH] sort list output --- client/cli/bam.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/cli/bam.py b/client/cli/bam.py index d45ea27..8fe7225 100755 --- a/client/cli/bam.py +++ b/client/cli/bam.py @@ -259,12 +259,10 @@ class bam_utils: import sys import requests - # print(bam_config.find_config()) - + # TODO(cam) multiple paths path = paths[0] del paths - # TODO(cam) multiple paths payload = { "path": path, } @@ -276,6 +274,7 @@ class bam_utils: ) items = r.json().get("items_list", ()) + items.sort() for (name_short, name_full, file_type) in items: if file_type == "dir":