fixing sort bug in mugen