private void btnEntryOrder_Click(object sender, System.EventArgs e)
        {
            List<Entrytest> listEntry = new List<Entrytest>();
            for (int i = 0; i < 3; i++)
            {
                Entrytest test = new Entrytest();
                test.Name = "test" + i.ToString();
                test.Old = i + 20;
                listEntry.Add(test);
            }

            var query = from r in listEntry
                        orderby r.Old descending
                        select r;

            listEntry = new List<Entrytest>();

            foreach (Entrytest t in query)
            {
                listEntry.Add(t);
            }
            dataGridView1.DataSource = listEntry;
        }
        private void btnEntryOrder_Click(object sender, System.EventArgs e)
        {
            List <Entrytest> listEntry = new List <Entrytest>();

            for (int i = 0; i < 3; i++)
            {
                Entrytest test = new Entrytest();
                test.Name = "test" + i.ToString();
                test.Old  = i + 20;
                listEntry.Add(test);
            }

            var query = from r in listEntry
                        orderby r.Old descending
                        select r;

            listEntry = new List <Entrytest>();

            foreach (Entrytest t in query)
            {
                listEntry.Add(t);
            }
            dataGridView1.DataSource = listEntry;
        }