I cannot get the program to print the numbers properly and sort properly. I need help on making the program run properly. This project's deadline is tonight at 12. Please Help
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sort
{
class Program
{
static void Main(string[] args)
{
List<int> ints = new List<int>() { };
int sort = 0;
for (int i = 1; i > 0; i++)
{
Console.WriteLine("Enter a number");
int number = Convert.ToInt32(Console.ReadLine());
if (number == -1)
break;
{
for (int j = 0; j > ints.Count; j++)
{
if (ints[i] < ints[j])
{
sort = ints[j];
ints[j] = ints[i];
ints[i] = sort;
Console.WriteLine(ints[i].ToString());
}
}
}
}
}
}
}