sorting bug fixed for prayers