def test_default_order():
 table = PersonTable(PersonProxy.objects.all())
 Person.objects.create(first_name='Foo', last_name='Bar')
 Person.objects.create(first_name='Bradley', last_name='Ayers')
 table.data.order_by([])
 assert (list(table.rows[0])[1] == 'Ayers')

def test_default_order ( ) : table = PersonTable ( PersonProxy . objects . all ( ) ) Person . objects . create ( first_name = 'Foo' , last_name = 'Bar' ) Person . objects . create ( first_name = 'Bradley' , last_name = 'Ayers' ) table . data . order_by ( [ ] ) assert ( list ( table . rows [ 0 ] ) [ 1 ] == 'Ayers' )
if orderable=false .