topicalitem ordering by raw input