From the Sort dialog box, below Column, inside the Sort by or Then by box, select the column that you'd like to sort by a custom record. This threat is particularly prevalent when dealing with macros from external resources, Which is the reason Excel, by default, disables them, providing protection https://www.customguide.com/excel/excel-macros