finished sorting use cases