Reorder windows automatically