Scheduler- Ordering events

image

How to have them ordered as 2 rows.

Tried ‘sort’ function but didn’t work, also made 3 lines.

‘type’ is defined shown in ‘text’

Need to have them as
1 1 1
2 2 2

Best I could achieve:

image

Solved:

			if(a.type<b.type){
				return -1;
			}
			else if(a.type>b.type){
				return 1;
			}
			else{
				if(a.start_date<b.start_date){
					return -1;
				}
				else{
					return 1;
				}
				return 0;
			}

Hi,

Thank you for sharing the solution of the issue, maybe it will be helpful to someone else.

Regards