Added sort methods to sort the list when new media files are added and cleaned the code to use these new functions
Fixed averageRanking calculations. These are done in the MediaStore.
Added sort methods that sort the array lists and updates the average ranking for each media object.