changed the sorting order to ascending and made the sidebar use the same model as the mainwindow