fix, make sure the sorted nodes are always right even is a Array