Added Like for search functions. Security measure for sort. Some sorting in getCases.