I'm facing an issue where I have an array of various strings:
[ "Aluminum", "Basic Materials", "Broad Credit", "Broad Market", "Cocoa", "Coffee", "Consumer Cyclicals", "Consumer Non-cyclicals", "Copper", "Corn", "Cotton", "Crude Oil", "Energy", "Extended Market", "Financials", "Freight", "Gasoline", "Global Macro", "Gold", "Grains", "Health Care", "High Dividend Yield", "High Yield", "Industrials", "Investment Grade", "Large Cap", "Lead", "Livestock", "Long AUD, Short USD", "Long CAD, Short USD", "Long CHF, Short USD", "Long CNY, Short USD", "Long EUR, Short USD", "Long Emerging Markets Basket, Short USD", "Long GBP, Short USD", "Long Global Basket, Short USD", "Long INR, Short USD", "Long JPY, Short USD", "Long SEK, Short USD", "Long SGD, Short USD", "Long USD, Short AUD", "Long USD, Short CHF", "Long USD, Short EUR", "Long USD, Short GBP", "Long USD, Short Global Basket", "Long USD, Short JPY", "Long/Short", "Metals", "Micro Cap", "Mid Cap", "Natural Gas", "Nickel", "Palladium", "Platinum", "Real Estate", "Silver", "Small Cap", "Softs", "Soybeans", "Spreads", "Sugar", "Target Outcome", "Target Risk", "Technology", "Telecommunications", "Theme", "Tin", "Total Market", "Utilities", "Volatility", "Wheat" ]
I am looking to devise a method that will sort this array based on a given input value. For instance, if the input is "Platinum," then the array should display the platinum value first.
Thank you!