https://www.cnblogs.com/chusiyong/p/11323354.htmlhttps://www.cnblogs.com/mwq1024/p/10073663.html
用排序算法或冒泡算法试试