Generates a timestamp based id as Firebase does. If same timestamp has already generate id it generates new id sortable