Add new tests for sort with active clients