bool cmp(s a, s b) { return (a.length() <b.length())^(a.length() ==b.length())*(a<b);}
正和負都用 cmp 來 sort, 負的再倒過來輸出就好