Remove redundant conditionals in get_ordinal()

Also removed unused semicolons