enhance input sort with the modal which display the available fields