getRowId now explicitly orders rows if there are multiple

Also returns None if not found