Issue #9: Solved ordering issue

Added a helper for providing order by rank for post diashow photos.