some improvement
sorting version one complete!