indexOfId

Returns the index of the row with the provided id or -1 when no such row exists.