Sortable datalists

(cherry picked from commit 404f9de)