Hello!
My goal is to sort an array starting with a given value.
For example, I have three employees: Smith, Jones, Taylor. They are stored in an array created from my database. I am populating a drop down menu with these names. I want the current user’s name to be at the top of the drop down list. This way by default their name is selected. If they would like to select another employee they have to click the list and choose. Can someone please provide the basic code to sort the array?
Thanks!