fix for STORE-1321: refactor code with suggestions from code review [Code Review] Update sort element in ES store and publisher to support customizing sort attributes
fix for STORE-1321: refactor code with suggestions from code review [Code Review] Update sort element in ES store and publisher to support customizing sort attributes

thushara35/carbon-store,thushara35/carbon-store,wso2/carbon-store,cnapagoda/carbon-store,cnapagoda/carbon-store,jeradrutnam/carbon-store,prasa7/carbon-store,madawas/carbon-store,jeradrutnam/carbon-store,splinter/carbon-store,cnapagoda/carbon-store,jeradrutnam/carbon-store,wso2/carbon-store,daneshk/carbon-store,Rajith90/carbon-store,daneshk/carbon-store,madawas/carbon-store,prasa7/carbon-store,prasa7/carbon-store,madawas/carbon-store,wso2/carbon-store,splinter/carbon-store,splinter/carbon-store,Rajith90/carbon-store,daneshk/carbon-store,Rajith90/carbon-store,thushara35/carbon-store