Skip to main content

Reorder

Rank a list by moving items into the order you want. Up/Down move the highlight; Space picks the highlighted item up and, while it is held, Up/Down carry it through the list; Space (or Enter) drops it, and Enter accepts. The widget returns every item in its final order - a permutation of the options, never a subset. Pass default (a list of option keys) to seed the starting order; any options it omits are appended in declared order, so the ranking is always complete. Long lists page around the cursor - set the window with ->pageSize().

$p->reorder('priorities', 'Rank by priority')->default(['redis', 'solr'])->options(['redis' => 'Redis', 'solr' => 'Solr', 'clamav' => 'ClamAV']);
ANSINo ANSI
UnicodeReorder: Unicode + ANSIReorder: Unicode + No ANSI
ASCIIReorder: ASCII + ANSIReorder: ASCII + No ANSI