Minimum viable table sorting