# HG changeset patch
# User Jeroen Demeyer <jdemeyer@cage.ugent.be>
# Date 1369317340 7200
# Node ID b1c9477b19394a76be595b4267b93caca8944cf9
# Parent f78a9f50409f259e0ac45749b7d550eabf0ec47d
Sort iterator through Cremona database by conductor
diff git a/sage/databases/cremona.py b/sage/databases/cremona.py
a

b


9  9  is included by default with Sage. It contains Weierstrass equations, 
10  10  rank, and torsion for curves up to conductor 10000. 
11  11  
12   The large database includes all curves of conductor up to 240,000. It 
 12  The large database includes all curves of conductor up to 300,000. It 
13  13  also includes data related to the BSD conjecture and modular degrees 
14  14  for all of these curves, and generators for the MordellWeil 
15  15  groups. To install it type the following in Sage:: 
… 
… 

645  645  sage: it.next().label() 
646  646  '45a3' 
647  647  """ 
648   for c in self.__connection__.cursor().execute('SELECT curve FROM ' \ 
649   + 't_curve'): 
 648  query = "SELECT curve FROM t_curve,t_class USING(class) ORDER BY conductor" 
 649  for c in self.__connection__.cursor().execute(query): 
650  650  yield self.elliptic_curve(c[0]) 
651  651  
652  652  def __getitem__(self, N): 