SMS: Constructing a linearly ordered topological space from a fractal structure: a probabilistic approach