compare sort order as integers and not as strings