[BUG] Sorting a sorted RLMArray

Core's `Query::tableview` method should not be used as it does not support sorting a sorted view. 

See also https://github.com/willmoore/RealmTest for original bug report.

@alazier @tgoyne @jpsim 
I didn't have to write the same unit test four times - we need to test all four combinations here as the bug is about sorting a sorted table view.