How do I fill a Sprite[] in the alphabetical order in the script Inspector?

Okay this is infuriating. I have Sprite files called “frame (x)” where x is the frame number. When I drag and drop all the frames on a Sprite array in the inspector it adds them in a random order… I want them to be added in chronological order meaning “frame (1)” then “frame (2)” but it decides to put them in a random fashion like so:

Nevermind I found a working answer: Add Elements in Array in Inspector with alphabetical sorting - Questions & Answers - Unity Discussions

 [ContextMenu ("Sort Frames by Name")]
 void DoSortFrames() {
     System.Array.Sort(frames, (a,b) => a.name.CompareTo(b.name));
     Debug.Log(gameObject.name + ".frames have been sorted alphabetically.");
 }