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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -