forum topic sorting function added