a more generic code added to the site.js
SortEntities behaviour added
sort entities behaviour added
now using the global sorting bevavior