create function to split strings
Sort last results depending on activity entries