-fixed  array return for articles resort
-fixed builArticle method to reorder order arrays for current category
-fixed category filter to be truly global scope
-made compare function for sorting global