parse hymnbookIndex to int for proper sorting