sort stations and types