Efficient AI Techniques for Intelligent Data Sorting