On Mon, Dec 19, 2016 at 8:16 PM <sergien.evg...@gmail.com> wrote:

> This code does not do anything.

The code does sort the array. It's just the copy of the array passed to
sort.Sort that's get sorted. That's because array is a plain old value
type. A pointer receiver methods fix it:
https://play.golang.org/p/Kgpcm191fo
-- 

-j

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to