For that behaviour we may have a simple reason:
In your proc sort_queue_properties() you ONLY return your var queue_table when the last if condition is true. Otherwise the default result variable is returned, which has len 0 of course.
For that behaviour we may have a simple reason:
In your proc sort_queue_properties() you ONLY return your var queue_table when the last if condition is true. Otherwise the default result variable is returned, which has len 0 of course.