Industrielle styresystemer - Wiki
Here is the function block for HighLowSelect. This gets two times as input and returns both the highest and the lowest of those times.