修复了排序的bug和缩放的问题

Signed-off-by: Meathill <meathill@gmail.com>