mysql innoDB引擎默认根据id升序排列,如果添加了排序字段比如sort,那么给select语句添加order by sort 这个时候如果sort相同,查出来的顺序并不会按照id的升序来排列,需要将id也添加入order by 中,如 order by sort,id