sorting dates in bash