Maybe fixed comparison
Maybe fixed it... now with sort