CGI interview question

write the code for selection sort, quick sort, etc. how to swap without temporary variable how to sort an alphanumeric array into separate arrays???