use new Sort and diff it with math

https://tour.golang.org/#25