From 6810f3c63aeed4464c0504c4b1f2db082c7929dd Mon Sep 17 00:00:00 2001 From: Marko Mecina <marko.mecina@univie.ac.at> Date: Thu, 11 Aug 2022 13:19:27 +0200 Subject: [PATCH] properly sort TCs when obtaining list of commands --- Ccs/ccs_function_lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ccs/ccs_function_lib.py b/Ccs/ccs_function_lib.py index a23d039..659283f 100644 --- a/Ccs/ccs_function_lib.py +++ b/Ccs/ccs_function_lib.py @@ -2671,7 +2671,7 @@ def get_tc_list(ccf_descr=None): 'cpc_descr, cpc_dispfmt, cdf_eltype, cpc_pname, cdf_value, cpc_inter, ' 'cpc_radix FROM ccf LEFT JOIN cdf ON cdf.cdf_cname=ccf.ccf_cname ' 'LEFT JOIN cpc ON cpc.cpc_pname=cdf.cdf_pname ' - 'ORDER BY ccf_type, ccf_stype, ccf_cname').fetchall() + 'ORDER BY SUBSTRING(ccf_cname, 1, 2), ccf_type, ccf_stype').fetchall() else: cmds = scoped_session_idb.execute('SELECT ccf_cname, ccf_descr, ccf_descr2, ccf_type, ccf_stype, ccf_npars, ' 'cpc_descr, cpc_dispfmt, cdf_eltype, cpc_pname, cdf_value, cpc_inter, ' -- GitLab