Select correct row for new entry regardless of sort order