Also attr_valfind() breaks with sortvals if #values = 0. Not sure if it can be called that way, but it doesn't hurt to handle it right. -- Hallvard