javascript - dhtml scheduler timeline event is not coming in descedning priority -


i using dhtml scheduler. want show schedule items based on priority in descedning order in day. suppose have 3 events on 3 april events come highest priority element coming @ top, lowest priority @ bottom.i have coded event showing in ascending order. after modifying sorting logic in below method not giving me right result

 scheduler.createtimelineview(            {                  sort:function(a,b){                  return number(b.priority) - number(a.priority)                  }            }); 


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -