You can try
import Data.List hiding (sort)
This will prevent import Data.List.sort, allowing you to freely define your own function with a name sort.
If you want to use Data.List.sortin addition to yours, add the line
import qualified Data.List
or
import qualified Data.List as L
This allows you to access the library function as Data.List.sortor L.sort, respectively.