[MLlib]Vectors.sparse() add support to unsorted indices

For original method, when the indices is not strictly increasing, the sparse vector can be created without any warning or error. But when use apply() method, only zero will be returned.
I agree with your method. At least a error should be reported, otherwise it's hard to locate problems in applications.