Sort in Group

Combine Luogu P1177 to read the N number from small to large

Remember to rest.