Sort controller complete