added sorting and date parsing
added jQuery extension method