sort the elasticsearch
use the message count from the description in the example script