Code:
public void nameSort()
{
for (int i = 1; i < stores.length; i++)
{
int j;
Product val = stores[i];
for (j = i - 1; j > -1; j--)
{
Product temp = stores[j];
if (temp.compareTo(val) <= 0)
{
Leave a comment: