Gtk.ListStore.prototype.reorder

function reorder(new_order:[Number]):void {
    // Gjs wrapper for gtk_list_store_reorder()
}

Reorders store to follow the order indicated by new_order. Note that this function only works with unsorted stores.

Since 2.2

new_order

an array of integers mapping the new position of each child to its old position before the re-ordering, i.e. new_order<literal>[newpos] = oldpos</literal>. It must have exactly as many items as the list store's length.