Hi, I have a List of 80 int the user can press any of the 80 buttons and each press ada 1 to that buttons index.
What I’d like to do is find and save the index positions of the highest to lowest numbers in the List, is this possible, thanks.
What I have is a Gin list, Country List, ABV List and a Price List.
public List< string > gins = new List< string >();
public List< string > country = new List< string >();
public List< string > abv = new List< string >();
public List< string > price = new List< string >();
Then I populate them with a text file -
5th Fire
Spain
42.00%
£3.80
Alkamist
Spain
40.00%
£4.50
Aviation
USA
40.00%
£3.40
Biercee
Belgium
44.00%
£4.30
Blackwood
Scotland
40.00%
£3.60
ect … unto the 80 in the file
then I have another List -
public List< int > ginScore = new List< int >();
That is next to the Gin column, so each time someone presses the button next to that Gin it gains 1 point in popularity, so I was looking for a way to save the index positions of the highest to lowest numbers in that List so I then could put them indexes of the gins List in order of popularity …
