sortable and flipflop