Add a generalized solution for integer to ordinal function

This is a pretty silly/trivial change, but I just started looking through the codebase and noticed you added the numOrder function today - seemed like an easy fix to put in something to future-proof it.