Add sorting and move shorten bar to the top