Check ORDER BY on different positions in the selection

Related to CASSANDRA-8286
Add additional test for CASSANDRA-8286