AudioClip Import Order Randomized?

Dragging a number of wave files from assets onto an empty array of AudioClips populates the array in a seemingly random order. Is it possible to have AudioClips in the array be in alphabetical order?
With the large number of clips I’m dealing with (well over 1000), it is painful to drag them into the array one by one… x_X"

using UnityEngine;
using System.Collections;
public class TestAudio2 : MonoBehaviour {
	public AudioClip[] auTest;

dragging onto array:

Array populated with clips in random order:

Anyone has any idea how to import them in alphabetical order? ^^

I would recommend writing a script that will change the order to whatever you want in the Awake() method.

hi @Rostam24
thanks for your help! - it’s working now with



int NameSort (AudioClip a, AudioClip b) {

it’s from a JavaScript solution for numbers or distances or something that I didn’t manage to convert to C# successfully earlier