If you don't want to use a sort function then
you have to create your how (there's nothing special in dates, since they are an ordered set).
Wikipedia[
^] has a list of sorting algorithms, pick the one that best fits your needs and... start coding.