have a look at the order by clause of sql
id expectg to see something like
select ID, Size, Shape, from <mytable> order by Shape,Size
the rest of it is down to your presentation layer, incidentally what are you suing for your presentation layer (Access,
VB, C++, MFC/OWL, Delphi?)
you could probably do it via a sub select wihtin MySQL, but that wold be messy
incidentally Id expect the Shape column to be a reference to another table and be somehting like ShapeTypeID
perhaps a
quick refresher on table desing would be in order
tblShapeTypes
ShapeTypeID: ShapeDesc
0: Unknown
1: Round
2: Ovoid
3: Square
4: BuckyBall
tblGems
GemID,Size,ShapeTypeID
1 1.1 1
2 1.2 3
3 1.3 1
4 2 1
5 2.1 3
.....
11 5 1