Improved sort skeleton