Implemented Comparator in Packet