def ordena(ls):
    ls.sort(key=int)

def hotel(dhab,planta):
    lhabs = []
    for hab in dhab:
        ll = hab.split('-')
        p, h = ll
        if int(p) == planta and dhab[hab]:
            lhabs.append(h)
    ordena(lhabs)
    return lhabs
