[PATCH 3/4] add sorting feature into powerdebug