Array can be use in stl::sort() when not using vector inside
fix warnings caused by deprecating some functions of Array
Merge pull request #3454 from minggo/array-support-sort

Array can be use in stl::sort() when not using vector inside