Sorting lookup using script

Sorting lookup using script

Hi guys, 

I've applied a filter to a lookup field. Can someone help me with what script I need to add in order to sort Service User by Last name? 

input.Service_user:ui.add(People[Department == input.Department_Lookup.ID].ID.getAll());

Thanks!

Lindsay