Services: Improve channel ordering sql. This works much better with seperators like _ and . used by some, especially in the US.
Revert "Speed up and reduce temporary space of time search a lot."

There is a simpler alternate fix that doesn't affect sorting as this
one does.

This reverts commit c0c47344879d3467cfea62938a33e70278252b36.
Drop DISTINCT clause from program query, it's not required and slows down queries significantly.