I am having trouble figuring out how to put the String[][]
store array in alphabetical order looking at the second column which consist of gifts, school supplies textbooks, and campus gear.
I would very much appreciate the help.
**
String[][] store = {
{"Alumni Drink ware", "Gifts", "$25.00"},
{"Binders", "School Supplies", "$3.00"},
{"Book bag", "School Supplies", "$20.00"},
{"Fabulous Desserts", "Textbooks", "$25.00"},
{"Folders", "School Supplies", "$1.00"},
{"Gift Cards", "Gifts", "$25.00"},
{"Highlighters", "School Supplies", "$2.00"},
{"Jacket", "Campus Gear", "$65.00"},
{"JAVA Programming", "Textbooks", "$150.00"},
{"Network Solutions", "Textbooks", "$75.00"},
{"Pencils", "School Supplies", "$1.00"},
{"Pens", "School Supplies", "$2.00"},
{"Shorts", "Campus Gear", "$10.00"},
{"Sweatshirts", "Campus Gear", "$40.00"},
{"T-shirts", "campus Gear", "$15.00"},
{"Web Design Ideas", "Textbooks", "$55.00"}};
**this is how my array looks when I display it. I'm trying to sort the second column or use that to sort the array. **
Alumni Drink ware Gifts $25.00
Binders School Supplies $3.00
Book bag School Supplies $20.00
Fabulous Desserts Textbooks $25.00
Folders School Supplies $1.00
Gift Cards Gifts $25.00
Highlighters School Supplies $2.00
Jacket Campus Gear $65.00
JAVA Programming Textbooks $150.00
Network Solutions Textbooks $75.00
Pencils School Supplies $1.00
Pens School Supplies $2.00
Shorts Campus Gear $10.00
Sweatshirts Campus Gear $40.00
T-shirts campus Gear $15.00
Web Design Ideas Textbooks $55.00