define sort function to enhance the pcb display