fixed bug in grunt task
fixed sorting order