Explain how you would implement a custom sorting algorithm, and compare its efficiency with standard library sorting methods.