0

I want to order by type, by a pattern. Records now:

type name

1    a
2    b
1    c
4    d
4    e
3    f
2    g
3    h

my pattern is 2,4,3,1 so I would like to get:

2    b
2    g
4    d
4    e
3    f
3    h
1    a
1    c
John Smith
  • 6,129
  • 12
  • 68
  • 123

1 Answers1

2

use order by field (type,2,4,3,1). This will give you the correct result.

Jens
  • 67,715
  • 15
  • 98
  • 113