list-widget: add lisp-side sorting functionality.