better sorting for norm figure