Sort output in ns_list and cs_list