idea for better output by sorting result