fixed reading specific level sorting conditions