Pergunta de entrevista da empresa PTC

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