PTC Interview Question

what is the difference between a compiler an a linker? What parameters will we need to implement a sort function for all data types.