So I have these fields in my directors table
id, name, position, summary, deleted
This table has the following records
1 | John Doe | President | Some text | 0
2 | Mary Doe | Vice President | Some text | 0
3 | Hannah Doe | Treasurer | Some text | 0
4 | Ann Doe | Board | Some text | 0
5 | Mark Doe | Board| Some text | 0
6 | Johnny Doe | Secretary | Some text | 0
As of now, I can get them by using this code
$directors = Director::where('deleted',0)->get();
But how can I arrange based on my preferred values, this should arrange like this.
President, Vice President, Secretary, Treasurer, Board and if the position is blank this will be below the records of Board Position
1 | John Doe | President | Some text | 0
2 | Mary Doe | Vice President | Some text | 0
6 | Johnny Doe | Secretary | Some text | 0
3 | Hannah Doe | Treasurer | Some text | 0
4 | Ann Doe | Board | Some text | 0
5 | Mark Doe | Board| Some text | 0