Which is more preferable? between the two? like for example in sorting arrays, would it be more **practical** to use **pre-defined sorting function** than creating **your own sorting function?**

---

What are the advantages and disadvantages between using a Pre-defined Function and User-defined function?
=========================================================================================================