Now checks if uk is sorted without sorting it. (in __init__)