C Program To Sort Elements In Array In Javascript