* Avoid name confliction: index() and sort(). * Add including <string.h> for string functions. * Avoid using deprecated glib function: g_strcasecmp().