having trouble with adding new options to collection sort

New Member
1 0 0


i have been working on changing  the default options in the sort selection

i added two new options  to sort according to a value (calories) present in the product metadata (one option is ascending and the other is descending )
but these options are causing the sorting to crash along with the default option: best selling


as summary my options are: 


Best selling

price low to high

price high to low

calories low to high

calories high to low


featured, price high to low, and price low to high are working correctly with no issues

best selling, calories low to high, calories high to low are crashing and sorting according to one of them which changes every now and then for a reason  i dont know 


thanks for any help