added sort() for array, vector