convert set to sorted list to make json serializable