[fix] correctly sort the window set (lexicographic by default)