Added sort for images in ViewImageActivity.java