Fully functional listview
updated sort-algorithm