Sorting Program In Javascript Alert