Check parameters for the select() method a bit more, switch if start is later than end

Signed-off-by: Marko Locher <marko@locher.at>