Reorder functions on msg source file
Reorder functions on msg source file

This patch reorder functions to improve readability.

CESARBR/knot-service-source,CESARBR/knot-service-source,CESARBR/knot-service-source,CESARBR/knot-service-source,CESARBR/knot-service-source